package com.erp.service;

import com.erp.entity.Perms;
import com.erp.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
public interface UserService {

    List<User> getAll();
    
    User findByUserId(String id);
    
    int add(User user);
    
    User findByUserName(String username);

    User findRolesByUserName(String username);

    // 根据角色Id查询权限集合
    List<Perms> findPermsByRoleId(Integer id);
    
    int updateHeadPortraits(String username, String headerUrl);
    
    int update(User user, String roles);

    int delete(Integer id);
}
